package io.keen.client.android;

import android.content.Context;
import io.keen.client.java.FileEventStore;
import io.keen.client.java.KeenClient.Builder;
import io.keen.client.java.KeenEventStore;
import io.keen.client.java.KeenJsonHandler;

public class AndroidKeenClientBuilder extends Builder {
    private final Context context;

    public AndroidKeenClientBuilder(Context context) {
        this.context = context;
    }

    protected KeenJsonHandler getDefaultJsonHandler() {
        return new AndroidJsonHandler();
    }

    protected KeenEventStore getDefaultEventStore() throws Exception {
        return new FileEventStore(this.context.getCacheDir());
    }
}
